using System;

namespace HZY.Models
{
    using HZY.Models.Enums;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;

	[Table(nameof(Product))]
	 
	public class Product
	{
		[Key]

		public Guid Product_ID { get; set; } = Guid.Empty;
		/// <summary>
		/// 产品编号 
		/// </summary>
		[Required(ErrorMessage = "产品编号不能为空!")]
		public string Product_Code { get; set; }
		/// <summary>
		/// 产品名称  
		/// </summary>
		[Required(ErrorMessage = "产品名称不能为空!")]
		public string Product_Name { get; set; }
		/// <summary>
		/// 产品颜色  
		/// </summary>
		public string Product_Colour { get; set; }
		/// <summary>
		/// 规格 
		/// </summary>
		public string Product_Specs { get; set; }
		/// <summary>
		/// 创建时间
		/// </summary>
		[DatabaseGenerated(DatabaseGeneratedOption.Computed)]
		public DateTime? Product_CreateTime { get; set; }
		/// <summary>
		/// 是否禁用
		/// </summary>
		public ERole_IsDelete Product_Disable { get; set; } = ERole_IsDelete.否;
		/// <summary>
		/// 是否删除 
		/// </summary>
		public ERole_IsDelete Product_IsDelete { get; set; } = ERole_IsDelete.否;
	}
}